<template>
    <a-form-item label="必填提示" v-if="curWidget.value?.options.required">
        <a-input v-model:value="curWidget.value!.options.requiredHint"/>
    </a-form-item>
</template>

<script setup lang="ts" name="requiredHint-editor">
import type { BaseWidgetType, DesignerType } from '@/xyFDesigner/type';
import type { Ref } from 'vue';

defineOptions({
    name:"requiredHint-editor"
})

const props = withDefaults(defineProps<{
    designer:DesignerType,
    curWidget:Ref<BaseWidgetType | null>
}>(),{})

</script>